package com.jt.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RedisController {

    @Value("${Redis.host}")
    private String host;
    @Value("${Redis.port}")
    private Integer port;

    @GetMapping
    public String getNode(){
        return "redis节点:"+host+":"+port;
    }

}
